package org.kabeja.dxf.entity;

import org.kabeja.dxf.DXFConstants;
import org.kabeja.dxf.helpers.Point;
import org.kabeja.math.TransformContext;
import org.xml.sax.ContentHandler;
import org.xml.sax.SAXException;

import java.util.Map;

/**
 * @author shutao
 * @since 2022/4/25 9:20
 */
public class DXFShape extends DXFEntity {
    protected Point insertPoint = new Point();
    protected double rotation = 0.0D;
    protected double height = 0.0D;
    protected double scaleFactor = 1.0D;
    protected double obliqueAngle = 0.0D;
    protected String name = "";

    public DXFShape() {
        this.setLineType(this.getType());
    }

    public void toSAX(ContentHandler var1, Map var2, DXFEntity var3, TransformContext var4) throws SAXException {
    }

    @Override
    public Bounds getBounds() {
        Bounds var1 = new Bounds();
        var1.setValid(false);
        return var1;
    }

    @Override
    public String getType() {
        return DXFConstants.ENTITY_TYPE_SHAPE;
    }

    public double getHeight() {
        return this.height;
    }

    public void setHeight(double var1) {
        this.height = var1;
    }

    public Point getInsertPoint() {
        return this.insertPoint;
    }

    public void setInsertPoint(Point var1) {
        this.insertPoint = var1;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String var1) {
        this.name = var1;
    }

    public double getObliqueAngle() {
        return this.obliqueAngle;
    }

    public void setObliqueAngle(double var1) {
        this.obliqueAngle = var1;
    }

    public double getRotation() {
        return this.rotation;
    }

    public void setRotation(double var1) {
        this.rotation = var1;
    }

    public double getScaleFactor() {
        return this.scaleFactor;
    }

    public void setScaleFactor(double var1) {
        this.scaleFactor = var1;
    }

    @Override
    public double getLength() {
        return 0.0D;
    }
}
